﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BDGetQuote.Web.Models;
using BDGetQuote.Utilities;

namespace BDGetQuote.Web.Controllers
{
    public class CategoryController : BaseController
    {
        private ICategoryRepository _categoryRepository;
        public CategoryController()
        {
            _categoryRepository = new CategoryRepository();
        }
        public ActionResult Index()
        {
            var _user = (UserInfo)Session[Constants.SessionUser];
            var listCategories = _categoryRepository.GetAll(_user.UserId);
            return View(listCategories);
        }

    }
}
